<!doctype html>
<meta name="timeout" content="long">
<title>
    Cross-Origin-Opener-Policy: noopener-allow-popups means that the opener
    has no access to the openee.
</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/dispatcher/dispatcher.js"></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="/common/utils.js"></script>
<script src="../../resources/common.js"></script>
<script src="../../resources/noopener-helper.js"></script>
<script>


test_noopener_opening_popup("noopener-allow-popups",
                            "unsafe-none",
                            /*opener_expectation=*/true);
test_noopener_opening_popup("noopener-allow-popups",
                            "noopener-allow-popups",
                            /*opener_expectation=*/false);
test_noopener_opening_popup("noopener-allow-popups",
                            "same-origin",
                            /*opener_expectation=*/false);
test_noopener_opening_popup("noopener-allow-popups",
                            "same-origin-allow-popups",
                            /*opener_expectation=*/true);
test_noopener_opening_popup("same-origin-allow-popups",
                            "noopener-allow-popups",
                            /*opener_expectation=*/false);
test_noopener_opening_popup("same-origin",
                            "noopener-allow-popups",
                            /*opener_expectation=*/false);
test_noopener_navigating_away("unsafe-none");
 </script>
